package innerclass;

class Egg2{

	protected Yolk y;
	
	public class Yolk{
		public Yolk(){
			System.out.println("Egg.Yolk()");
		}
	}
	
	public Egg2(){
		System.out.println("new Egg");
		y = new Yolk();
	}
	
}

public class BigEgg2 extends Egg2 {
	
	public class Yolk extends Egg2.Yolk{
		public Yolk(){
			super();
			System.out.println("BigEgg.Yolk()");
		}
	}
	
	public BigEgg2(){
		System.out.println("new BigEgg");
		System.out.println("_________");
		y = new Egg2.Yolk();
		System.out.println("_________");
		Yolk y2 = new Yolk();
	}
	
	public static void main(String[] args) {
		new BigEgg2();
	}
}

class DYolk extends Egg2.Yolk{
	
	DYolk(Egg2  y){
		y.super();
		System.out.println("BigEgg.DYolk()");
	}
	
}


